// 密码验证
function passwordCheck(){
    let userList=JSON.parse(localStorage.getItem('USERS'))
    $('.loginBtn').click(function(){
        if($('.username').val()!=userList[0].username){
            $('.usernameTips').html('用户名不正确')
            return
        }else if($('.password').val()!=userList[0].password){
            $('.password').html('密码不正确')
            return
        }
        $('.usernameTips').html('')
        $('.password').html('')
        location.href='./index.html'
    })
}
passwordCheck()